<template>
<layout>
    <h1>{{ $page.tag.title }}</h1>
    <ul>
      <li v-for="edge in $page.tag.belongsTo.edges" :key="edge.node.id">
        <g-link :to="edge.node.path">
          {{ edge.node.title }}
        </g-link>
      </li>
    </ul>
  </layout>
</template>
<page-query>
query ($id: ID!, $page: Int) {
  tag(id: $id) {
    title
    belongsTo(page: $page) @paginate {
      totalCount
      pageInfo {
        totalPages
        currentPage
      }
      edges {
        node {
          id
          ... on Post {
            title
            path
          }
        }
      }
    }
}
  


  tag1:tag(id: $id) {
    title
    id
  }
}
</page-query>
<script>
export default {

}
</script>

<style>

</style>